cmake_minimum_required(VERSION 3.19)
project(test_cpu_usage)

message("cmake module " $ENV{CMAKE_MODULE_PATH})
message("project dir "  ${PROJECT_SOURCE_DIR})

set(CMAKE_BUILD_TYPE DEBUG)

set(CMAKE_CXX_FLAGS "/OPT:NOREF /std:c++14 /EHsc  /MTd")
set(CMAKE_CXX_FLAGS_RELEASE "")

string(REGEX REPLACE "(.*)/(.*)/(.*)" "\\1" PARENTPATH  ${PROJECT_SOURCE_DIR})
message("last=" ${PARENTPATH})

include(${PARENTPATH}/CmakeTemplate.txt)

add_executable(test_cpu_usage test_cpu_usage.cpp)

set_property(TARGET test_cpu_usage PROPERTY
  MSVC_RUNTIME_LIBRARY MultiThreadedDebugDLL)

message(${CMAKE_CURRENT_SOURCE_DIR}/../../../obj/inc/third/include)

target_include_directories(test_cpu_usage SYSTEM  PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../../obj/inc/)
